package br.com.maiscontrole.view.site.beans.dica;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import br.com.maiscontrole.model.Dica;
import br.com.maiscontrole.repository.filter.FiltroDica;
import br.com.maiscontrole.view.site.beans.abst.AbstractListMB;
import br.com.maiscontrole.view.site.navigator.NavigatorRules;

/**
 * 
 * @author milton
 *
 */
@ManagedBean(name = "dicaListMB")
@SessionScoped
public class DicaListMB extends AbstractListMB<Dica, DicaListMDV, FiltroDica> {

	public static final String BEAN_NOME = "dicaListMB";

	public DicaListMB() {
		super();
	}

	public String consultarPerfilDicas(){
		FiltroDica filtro = new FiltroDica();
		this.getView().consultar(filtro);
		return NavigatorRules.DICA_PERFIL_LIST;
	}

	@Override
	public String tratarConsulta() {
		return NavigatorRules.DICA_LIST;
	}

	@Override
	public String tratarPreConsulta() {
		return NavigatorRules.DICA_LIST;
	}

}
